MEMEATER	=	gmake 
DATDIR	=	ryod robd todd jacd leed kind micd johd bigd kard


prg:	_opn _sel0 _sel1 _sel2 _sel3 _warn _end _dai\
	_dem0 _dem1 _dem2 _dem3  _dem4 _dem5 _dem6 _dem7 _dem8 _dem9\
	_bns1 _bns2 _bns3 _stg _stg2 _stg3 _chk

dat:	_ryod _robd _todd _jacd _leed _kind _micd _johd _bigd _kard

all:	prg dat


deldat:
	${cmdsplit rm %,60,${addsuffix \data.bin,${DATDIR}}}

_opn:
	gmake -c \game\opn

_sel:
	gmake -c \game\sel

_dem0:
	gmake -c \game\dem0
_dem1:
	gmake -c \game\dem1
_dem2:
	gmake -c \game\dem2
_dem3:
	gmake -c \game\dem3
_dem4:
	gmake -c \game\dem4
_dem5:
	gmake -c \game\dem5
_dem6:
	gmake -c \game\dem6
_dem7:
	gmake -c \game\dem7
_dem8:
	gmake -c \game\dem8
_dem9:
	gmake -c \game\dem9
_bns1:
	gmake -c \game\bns1
_bns2:
	gmake -c \game\bns2
_bns3:
	gmake -c \game\bns3
_end:
	gmake -c \game\end

_warn:
	gmake -c \game\warn

_dai:
	gmake -c \game\dai

_sel0:
	gmake -c \game\sel0
_sel1:
	gmake -c \game\sel1
_sel2:
	gmake -c \game\sel2
_sel3:
	gmake -c \game\sel3

_ryod:
	gmake -c \game\ryod
_robd:
	gmake -c \game\robd
_todd:
	gmake -c \game\todd
_jacd:
	gmake -c \game\jacd
_leed:
	gmake -c \game\leed
_kind:
	gmake -c \game\kind
_micd:
	gmake -c \game\micd
_johd:
	gmake -c \game\johd
_bigd:
	gmake -c \game\bigd
_kard:
	gmake -c \game\kard

_stg:
	gmake -c \game\stg
_stg2:
	gmake -c \game\stg2
_stg3:
	gmake -c \game\stg3

_chk:
	gmake -c \game\chk

backup:
	lha a -rx e:\backup\game *.s *.h *.inc *.mak *.lnk *.org *.mac makefile
